package streamforce.crypto.cloud;

public class Tuple {
	int streamId, timestamp;

	public Tuple(int streamId, int timestamp) {
		super();
		this.streamId = streamId;
		this.timestamp = timestamp;
	}
	
	
	public int getStreamId() {
		return streamId;
	}


	public void setStreamId(int streamId) {
		this.streamId = streamId;
	}


	public int getTimestamp() {
		return timestamp;
	}


	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + streamId;
		result = prime * result + timestamp;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Tuple other = (Tuple) obj;
		if (streamId != other.streamId)
			return false;
		if (timestamp != other.timestamp)
			return false;
		return true;
	} 
	
}
